<?php
namespace app\index\model;
use think\Model;
class cart extends Base{
//    protected $table = 'txunda_starts';
    protected $resultSetType = 'collection';
    protected $insert = ['status' => 1];
    protected $update = ['update_time'];
    // 定义时间戳字段名
    protected $autoWriteTimestamp = true;

    public function members(){
        return $this ->belongsTo('member','id','m_id');
    }
}